<img alt="<?php echo $ad->getTitle() ?>" title="<?php echo $ad->getTitle() ?>" 
  src="<?php printf(sfConfig::get('app_path_ad_thumb'), $ad->getThumb()) ?>" />
